package com.softoa.serviceImp;

import com.softoa.mapper.DocumentMapper;
import com.softoa.mapper.DocumentMapper;
import com.softoa.pojo.Document;
import com.softoa.pojo.Document;
import com.softoa.service.IDocumentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DocumentServiceImp implements IDocumentService {
    @Autowired
    DocumentMapper documentMapper;
    

    @Override
    public List<Document> documentSelectList(Document doc) {
        return documentMapper.documentSelectList(doc);
    }
    @Override
    public List<Document> documentSelectList2() {
        return documentMapper.documentSelectList2();
    }

    @Override
    public int documentInsert(Document doc) {
        documentMapper.documentInsert(doc);
        return 0;
    }

    @Override
    public Document documentSelectOne(Document doc) {
        return documentMapper.documentSelectOne(doc);
    }

    @Override
    public int documentUpdate(Document doc) {
        documentMapper.documentUpdate(doc);
        return 0;
    }
}
